<div id="search">	
	<%= form_tag @category, :method => 'get' do %>
	<p>
		<%= hidden_field_tag :direction, params[:direction] %>
		<%= hidden_field_tag :sort, params[:sort] %>
		
		<%= text_field_tag :search, params[:search] %>
		<%= submit_tag "Search", :name => nil %>
	</p>
	<% end %>
	<div id="advanced_search_options">
	</div>
</div>

<%= sort_options.map { |so| sort_link so[:id], so[:name] }.join(' | ').html_safe %>